﻿using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SheepCultivation.API.AddliCation.Parturitions;
using SheepCultivation.Common.Dto;
using SheepCultivation.Enum;

namespace SheepCultivation.API.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ParturitionsController : ControllerBase
    {
        public readonly IMediator mediator;

        public ParturitionsController(IMediator mediator)
        {
            this.mediator = mediator;
        }

        #region 分娩提示显示列表
        /// <summary>
        /// 分娩提示显示列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpPost("ParturitionsList")]
        public async Task<Result> Handle(ParturitionSeachCommon request)
        {
            return await mediator.Send(request);
        }
        #endregion

    }
}
